/**
 * Defines the main routes in the application.
 * The routes you see here will be anchors '#/' unless specifically configured otherwise.
 */

define(['./app'], function (app) {
    'use strict';
    return app.config(function ($stateProvider,$urlRouterProvider) {

        $urlRouterProvider.otherwise('/error');

        $stateProvider

        //添加订单
        .state("order",{
            url:"/order",
            templateUrl:"app/order/order.html",
            params:{
                'operate':'save'
            }
        })
        //订单列表
        .state("orderment",{
            url:"/orderment",
            templateUrl:"app/order/orderment.html",
            params:{
                'operate':'find'
            }
        })

    });
});
